package com.aaa.ms.service.impl;

import com.aaa.ms.service.NewsService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @ fileName:NewsServiceFallback
 * @ description:
 * @ author:zhz
 * @ createTime:2021/1/14 14:14
 */
@Component
//@Service
public class NewsServiceFallback implements NewsService {
    @Override
    public Map queryAll() {
        Map map  =new HashMap();
        map.put("errorCode","4444");
        map.put("errorInfo","远程服务调用失败，请联系管理员！");
        return map;
    }
}
